<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script text="javascript">
        // 1.将数组map，filter，reduce，every改写成箭头函数形式
         const arr = [1, 2, 3, 4, 5, 6]
         const arr1 = arr.map(
            (Element)=>{return Element +1}     
            )
         console.log(arr1)

         const arrr = arr.filter(
          (f)=>{
              return f%2==0
          }
           )  
          
           var sum = arr.reduceRight
           (
               (a1,a2)=>{
                return a1*a2
               }
           )


           var match = arr.every
           (
               (m)=>{
                   return m>1
               }
           )
    </script>
</body>
</html>